Class: CreateReleafRoles

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/releaf/templates/migrations/create_releaf_roles.rb

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
7
8
# File 'lib/generators/releaf/templates/migrations/create_releaf_roles.rb', line 2

def change
  create_table :releaf_roles do |t|
    t.string  :name,        :null => false
    t.string  :default_controller
    t.timestamps(null: false)
  end
end