Created
August 6, 2015 15:46
-
-
Save codeadict/9a8e34b91ef2973f6592 to your computer and use it in GitHub Desktop.
Migration for property status history
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 PropertyStatusHistory < ActiveRecord::Migration | |
def change | |
create_table :property_history do |t| | |
t.references :property, index: true, null: false | |
t.references :user, null: false, index: true | |
t.string :status, null: false | |
t.datetime :datetime, null: false | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment