-
-
Save e1senh0rn/1046851 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CreateBundles < ActiveRecord::Migration | |
def self.up | |
create_table :bundles do |t| | |
t.string :bundle_id, :null => false | |
t.string :title, :null => false | |
t.timestamps | |
end | |
add_index :bundles, :bundle_id, :unique => true | |
end | |
def self.down | |
drop_table :bundles | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment