foreman/db/migrate/20110213104226_create_proxy_features.rb @ 0fa5d146
2755ebe9 | Paul Kelly | class CreateProxyFeatures < ActiveRecord::Migration
|
|
2e291eb2 | Ohad Levy | class Feature < ActiveRecord::Base; end
|
|
2755ebe9 | Paul Kelly | def self.up
|
|
# Create the tables
|
|||
create_table :features do |t|
|
|||
t.string :name, :limit => 16
|
|||
t.timestamps
|
|||
end
|
|||
create_table :features_smart_proxies, :id => false do |t|
|
|||
t.references :smart_proxy
|
|||
t.references :feature
|
|||
end
|
|||
end
|
|||
def self.down
|
|||
drop_table :features
|
|||
drop_table :features_smart_proxies
|
|||
end
|
|||
end
|