Commit 054c9415 by John Donnal

fixed migration bug

parent bc64f00a
class CreateDbDecimations < ActiveRecord::Migration[5.0] class CreateDbDecimations < ActiveRecord::Migration[5.0]
def change def change
create_table :db_decimations do |t| create_table :db_decimations do |t|
t.integer :start_time, :int, :limit=>8 t.integer :start_time, :limit=>8
t.integer :end_time, :int, :limit=>8 t.integer :end_time, :limit=>8
t.integer :total_rows, :int, :limit=>8 t.integer :total_rows, :limit=>8
t.integer :total_time, :int, :limit=>8 t.integer :total_time, :limit=>8
t.integer :db_file_id, :int t.integer :db_file_id
t.timestamps null: false t.timestamps null: false
end end
end end
......
class RemoveIntFromDbDecimations < ActiveRecord::Migration[5.0] class RemoveIntFromDbDecimations < ActiveRecord::Migration[5.0]
def change def change
remove_column :db_decimations, :int # fixed in 20160524023257_create_db_decimations
# remove_column :db_decimations, :int
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment