2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-01-17 17:37:41 +00:00
|
|
|
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
|