Class: CreateEditors

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/manifest/install/templates/create_editors.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/generators/manifest/install/templates/create_editors.rb', line 2

def change
  create_table :editors do |t|
    t.string :email
    t.string :password_digest
    t.boolean :admin, default: false

    t.timestamps
  end
end