14 lines
202 B
Ruby
14 lines
202 B
Ruby
|
class CreateArticles < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
create_table :articles do |t|
|
||
|
t.string :name
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :articles
|
||
|
end
|
||
|
end
|