17 lines
375 B
Ruby
17 lines
375 B
Ruby
|
|
class CreateActivations < ActiveRecord::Migration
|
||
|
|
def self.up
|
||
|
|
create_table :activations do |t|
|
||
|
|
t.integer :order_id, :null => false
|
||
|
|
t.integer :build, :null => false
|
||
|
|
t.string :computer_id, :null => false, :references => nil
|
||
|
|
t.string :product
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
def self.down
|
||
|
|
drop_table :activations
|
||
|
|
end
|
||
|
|
end
|