Sha256: 58b7a115464b49d2800763fba60906d127ea6abb78f79a20ad63c11d416bee66

Contents?: true

Size: 384 Bytes

Versions: 6

Compression:

Stored size: 384 Bytes

Contents

class SetUpTestTables < ActiveRecord::Migration::Current

  def change
    create_table :posts do |t|
      t.integer :a, :b

      t.timestamps
    end

    create_table :comments do |t|
      t.string :content

      t.references :post

      t.timestamps
    end

    create_table :notes do |t|
      t.string :body

      t.references :post

      t.timestamps
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_snapshot-0.3.0 test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb
active_snapshot-0.2.4 test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb
active_snapshot-0.2.3 test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb
active_snapshot-0.2.2 test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb
active_snapshot-0.2.1 test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb
active_snapshot-0.2.0 test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb