Sha256: 0f2d90e1323a6cfd041e3348ac088d914b0b4d8c2247700e3f99e38dfe74c5d7
Contents?: true
Size: 645 Bytes
Versions: 5
Compression:
Stored size: 645 Bytes
Contents
class CreateProxyFeatures < ActiveRecord::Migration class Feature < ActiveRecord::Base; end def self.up # Create the tables create_table :features do |t| t.string :name, :limit => 16 t.timestamps end Feature.create(:name => "TFTP") Feature.create(:name => "DNS") Feature.create(:name => "DHCP") Feature.create(:name => "Puppet CA") Feature.create(:name => "Puppet") 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
Version data entries
5 entries across 5 versions & 1 rubygems