Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codeadict/9a8e34b91ef2973f6592 to your computer and use it in GitHub Desktop.
Save codeadict/9a8e34b91ef2973f6592 to your computer and use it in GitHub Desktop.
Migration for property status history
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