2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/generators/flexi_model/install/templates/create_flexi_model_collections.rb', line 2
def change
create_table "flexi_model_collections" do |t|
t.string 'name'
t.string 'singular_label'
t.string 'plural_label'
t.string 'namespace'
t.integer 'partition_id'
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "flexi_model_collections", [:namespace, :name]
add_index "flexi_model_collections", [:namespace, :name, :partition_id],
name: 'index_ns_name_pi', unique: true
end
|