ref: master
plugins/stock/db/migrate/20140605011417_create_stock_plugin_places.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
class CreateStockPluginPlaces < ActiveRecord::Migration def self.up create_table :stock_plugin_places do |t| t.integer :profile_id t.string :name t.text :description t.timestamps end add_index :stock_plugin_places, :profile_id end def self.down drop_table :stock_plugin_places end end |