15 lines
213 B
Ruby
15 lines
213 B
Ruby
|
class CreateRoles < ActiveRecord::Migration
|
||
|
def self.up
|
||
|
create_table :roles do |t|
|
||
|
t.integer :id
|
||
|
t.string :name
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
drop_table :roles
|
||
|
end
|
||
|
end
|