Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Countries < ActiveRecord::Migration
- def self.up
- create_table :countries do |t|
- t.string :name, :null => false
- t.string :short, :null => false
- t.timestamps
- end
- add_index :countries, :name, :unique => true
- end
- def self.down
- drop_table :countries
- end
- end
Add Comment
Please, Sign In to add comment