Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
16
db/migrate/20101203131634_create_activations.rb
Normal file
16
db/migrate/20101203131634_create_activations.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user