Class: CreateAbrahamHistories

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/abraham/templates/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/generators/abraham/templates/migration.rb', line 4

def change
  create_table :abraham_histories do |t|
    t.string :controller_name
    t.string :action_name
    t.string :tour_name
    t.references :creator, null: false, index: true

    t.timestamps index: true
  end
end