Sha256: 3117d574974c568f3711342a278bdf10c62ba520a9a138f29fcf53e8177b4cd9
Contents?: true
Size: 568 Bytes
Versions: 27
Compression:
Stored size: 568 Bytes
Contents
Sequel.migration do change do create_table :tags do column :id, String, primary_key: true, null: false, size: 36 column :name, String, size: 255, null: false index :name, unique: true end create_table :requests_tags do foreign_key :tags_id, :tags, index: true, type: String, null: false, size: 36, key: [:id] foreign_key :requests_id, :requests, index: true, type: Integer, null: false, key: [:index] index [:tags_id, :requests_id], unique: true index [:requests_id, :tags_id], unique: true end end end
Version data entries
27 entries across 27 versions & 1 rubygems