Sha256: 09d9d798ab931e83d1f30ea7c818c3ef9a9f4ee3808378efda4fe6d42350ade2

Contents?: true

Size: 258 Bytes

Versions: 17

Compression:

Stored size: 258 Bytes

Contents

class CreateAuthors < ActiveRecord::Migration[5.1]
  def change
    create_table :authors do |t|
      t.string :full_name, null: false
      t.text :bio
      t.datetime :deleted_at

      t.timestamps
    end

    add_index :authors, :deleted_at
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
historiographer-4.1.0 /Users/brettshollenberger/programming/historiographer/spec/db/migrate/20161121212230_create_authors.rb
historiographer-4.0.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-3.1.2 spec/db/migrate/20161121212230_create_authors.rb
historiographer-3.1.1 spec/db/migrate/20161121212230_create_authors.rb
historiographer-3.1.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-3.0.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-2.0.1 spec/db/migrate/20161121212230_create_authors.rb
historiographer-2.0.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.4.3 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.4.1 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.4.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.3.1 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.3.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.2.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.1.0 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.0.2 spec/db/migrate/20161121212230_create_authors.rb
historiographer-1.0.0 spec/db/migrate/20161121212230_create_authors.rb