Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
19
db/migrate/20110730141514_create_comics.rb
Normal file
19
db/migrate/20110730141514_create_comics.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class CreateComics < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :comics do |t|
|
||||
t.date :publish_on, :null => false
|
||||
t.string :image_file_name, :null => false
|
||||
t.string :image_content_type
|
||||
t.integer :image_file_size
|
||||
t.datetime :image_updated_at
|
||||
t.string :name
|
||||
t.text :story
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :comics
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user