Sha256: cb49fc7f21457659a2713ca55f336cca0d4ae53b8a15833a23e836897155a14a
Contents?: true
Size: 987 Bytes
Versions: 17
Compression:
Stored size: 987 Bytes
Contents
class CreateTestTables < ActiveRecord::Migration[5.2] 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
17 entries across 17 versions & 1 rubygems