Sha256: 479bab1dad509fa5381a2b8428aa28692aaadaea2447e2fd537149b07fb686e1
Contents?: true
Size: 982 Bytes
Versions: 2
Compression:
Stored size: 982 Bytes
Contents
class CreateTestTables < ActiveRecord::Migration def change create_table :users do |t| # Devise ## Database authenticatable t.string :email, null: false, default: "", index: true, unique: true t.string :encrypted_password, null: false, default: "" ## Confirmable t.string :confirmation_token t.datetime :confirmed_at t.datetime :confirmation_sent_at # Apps t.string :name t.timestamps end create_table :admins do |t| t.references :user, index: true t.string :phone_number t.string :slack_username t.timestamps end create_table :articles do |t| t.references :user, index: true t.string :title t.string :body t.timestamps end create_table :comments do |t| t.references :user, index: true t.references :article, index: true t.string :body t.timestamps end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activity_notification-1.3.0 | spec/rails_app/db/migrate/20160715050433_create_test_tables.rb |
activity_notification-1.2.1 | spec/rails_app/db/migrate/20160715050433_create_test_tables.rb |