Sha256: 48b8ddcf5a2f12e1b13bcc2c5756294949b692e5ebfcdf6885c8398161f8bd34

Contents?: true

Size: 1.14 KB

Versions: 13

Compression:

Stored size: 1.14 KB

Contents

class CreateBranches < ActiveRecord::Migration[5.0]
  def self.up
    create_table :branches do |t|
      
      t.string :title, null: false, limit: 256

      t.string :address_1, null: true, limit: 256
      t.string :address_2, null: true, limit: 256
      t.string :address_3, null: true, limit: 256

      t.string :email, null: true, limit: 256
      t.string :landline, null: true, limit: 16
      t.string :fax, null: true, limit: 16
      t.string :mobile, null: true, limit: 16

      t.string :facebook, null: true, limit: 256
      t.string :twitter, null: true, limit: 256
      t.string :google_plus, null: true, limit: 256
      t.string :linked_in, null: true, limit: 256
      t.string :youtube, null: true, limit: 256
      t.string :instagram, null: true, limit: 256
      t.string :tumblr, null: true, limit: 256
      t.string :pinterest, null: true, limit: 256
      t.string :blog, null: true, limit: 256

      t.string :status, null: false, limit: 16
      t.boolean :featured, default: false
      t.boolean :main_branch, default: false
      
      t.timestamps null: false
    end
  end

  def self.down
    drop_table :branches
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dhatu-0.3.0.pre.materialize db/migrate/20171014125053_create_branches.rb
dhatu-0.2.3 db/migrate/20171014125053_create_branches.rb
dhatu-0.2.2 db/migrate/20171014125053_create_branches.rb
dhatu-0.2.1 db/migrate/20171014125053_create_branches.rb
dhatu-0.2.0 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.25 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.24 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.23 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.22 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.21 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.20 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.19 db/migrate/20171014125053_create_branches.rb
dhatu-0.1.18 db/migrate/20171014125053_create_branches.rb